//#define __DEBUG__
// by Xeno
#define THIS_FILE "fn_firearty.sqf"
#include "x_setup.sqf"

#include "x_uiinc.sqf"

private ["_ctrl", "_idx"];
_ctrl = __uiGetVar(D_ARTI_DISP) displayCtrl 889;
_idx = lbCurSel _ctrl;
if (_idx == -1) exitWith {};
GVAR(ari_salvos) = _idx + 1;

_ctrl = __uiGetVar(D_ARTI_DISP) displayCtrl 888;
_idx = lbCurSel _ctrl;
if (_idx == -1) exitWith {};

GVAR(ari_type) = _ctrl lbData _idx;
